package com.start.common.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.start.common.mappers.CommonDataDictMapper;
import com.start.common.service.CommonDataDictService;
import com.start.common.vo.CommonDataVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CommonDataDictServiceImpl implements CommonDataDictService {

    @Autowired
    private CommonDataDictMapper dictMapper;

    @DS("#dataSourceName")
    @Override
    public List<CommonDataVo> getDataMapper(String dataSourceName, String table, String label, String value, String condition) {
        return dictMapper.getDataMapper(table, label, value, condition);
    }
}
